package com.qf.boot1;

import com.qf.boot1.service.TestSerivce;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = "com.qf.boot1.dao")
@EnableSwagger2
public class Boot1Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(Boot1Application.class, args);
        TestSerivce testService = (TestSerivce) applicationContext.getBean("testSerivce");
        testService.hello();
    }

}
